var myMooFlowPage = {
	
		start: function(){
	
            mw = new ImageWall($('scanlist_content'), {
	            startIndex: 0,
	            useSlider: true,
	            useAutoPlay: false,
	            useCaption: false,
	            useResize: false,
	            useMouseWheel: true,
	            useKeyInput: true
            });
            favType = $('hidden').innerHTML;
            mw.loadData("getFavInfo.php", favType);
			$('playwindow_background_center').tween('opacity', 0);
			$('playwindow_background_center').setStyle('z-index', 1);
            dragActivateAreaLeft = $j('#scanlist_top').offset().left + 40;
            dragActivateAreaTop = $j('#scanlist_top').offset().top - 20;
            dragActivateAreaRight = $j('#scanlist_bottom').width() + $j('#scanlist_bottom').offset().left - 40;
            dragActivateAreaBottom = $j('#scanlist_bottom').height() + $j('#scanlist_bottom').offset().top - 20;
            favAreaLeft = $j('#favor').offset().left;
            favAreaTop = $j('#favor').offset().top;
            favAreaRight = $j('#favor').offset().left + 80;
            favAreaBottom = $j('#favor').offset().top + 40;
            loadImages();
            watchType = 4;
            getUserFavListsWhenStartFav();
            addUserFavList();
            drawSelectedListWhenWatchFav();
            if (pageWidth() <= 1250)
            {
                $("page_background_regist_filter").setStyles({'width':'1250px'});
                $("page_background_regist").setStyles({'width':'1250px'});
            }
            else
            {
                $("page_background_regist_filter").setStyles({'width':'100%'});
                $("page_background_regist").setStyles({'width':'100%'});
            }
            if (pageHeight() <= 620)
            {
                $("page_background_regist_filter").setStyles({'height':'618px'});
                $("page_background_regist").setStyles({'height':'618px'});
            }
            else
            {
                $("page_background_regist_filter").setStyles({'height':'100%'});
                $("page_background_regist").setStyles({'height':'100%'});
            }
		}
		
	};
	
function getUserFavListsWhenStartFav()
{
	var xmlhttp;
	if (window.XMLHttpRequest)
  	{// code for IE7+, Firefox, Chrome, Opera, Safari
  		xmlhttp=new XMLHttpRequest();
  	}
	else
  	{// code for IE6, IE5
  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  	}
	xmlhttp.onreadystatechange=function()
  	{
  		if (xmlhttp.readyState==4 && xmlhttp.status==200)
    	{
			if (xmlhttp.responseText == "NOUSER")
			{
			}
			else
			{
                var start = 0;
                var end = xmlhttp.responseText.indexOf(':;', start);
                while (end != -1)
                {
                    user_fav_lists.push(xmlhttp.responseText.substring(start, end));
                    start = end + 2;
                    end = xmlhttp.responseText.indexOf(':;', start);
                }
                var listNumber = user_fav_lists.length;
                for (var i = 0; i < listNumber; ++i)
                {
                    if (user_fav_lists[i] == favType)
                    {
                        favListSelectPos = i;
                        break;
                    }
                }
                favListLoadOver = true;
			}
    	}
  	}
	xmlhttp.open("POST","getUserFavLists.php",true);
	xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
	xmlhttp.send("");
}
